#include <stdio.h>

void chline(char ch, int i, int j);

int main(void)
{
    int i, j;
    char ch;

    scanf("%d", i);
    scanf("%d", j);
    scanf(" %c", ch);
    chline(ch, i, j);


    return 0;
}

void chline(char ch, int i, int j)
{
    int row, line;
    for (row = 0; row < j; row++)
    {
        for (line = 0; line < i; line++)
            printf("%c", ch);
        printf("\r\n");
    }
}